package com.itheima.redbaby.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;

import com.itheima.redbaby.BaseActivity;
import com.itheima.redbaby.R;
import com.itheima.redbaby.utils.PromptManager;

public class MoreActivity extends BaseActivity implements OnClickListener {
	private RelativeLayout my_account_rl;
	private RelativeLayout recent_browse_rl;
	private RelativeLayout helpRelLay;
	private RelativeLayout userfeedback;
	private RelativeLayout aboutRelLay;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.more_activity);
		
		
		 
		initView();
		
	}

	private void initView() {
		//我的账户
		my_account_rl = (RelativeLayout) findViewById(R.id.my_account_rl);
		my_account_rl.setOnClickListener(this);
		//最近浏览
		recent_browse_rl = (RelativeLayout) findViewById(R.id.recent_browse_rl);
		recent_browse_rl.setOnClickListener(this);
		//帮助中心
		helpRelLay = (RelativeLayout) findViewById(R.id.helpRelLay);
		helpRelLay.setOnClickListener(this);
		//用户反馈
		userfeedback = (RelativeLayout) findViewById(R.id.userfeedback);
		userfeedback.setOnClickListener(this);
		//关于
		aboutRelLay = (RelativeLayout) findViewById(R.id.aboutRelLay);
		aboutRelLay.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		Intent intent;
		switch (v.getId()) {
		case R.id.my_account_rl:
			 intent=new Intent(MoreActivity.this,AccountCenterActivity.class);
			 startActivity(intent);
			break;

		default:
			break;
		}
		
	}
	
}
